<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>post</title>
    <script src="../day01/js/jquery-3.7.1.min.js"></script>
</head>
<body>
    
</body>
<script>
    //body参数：参数对象
    //$.post(url地址，请求参数，回调函数)
    //content-type:请求头信息   application/x-www-form-urlencoded(默认)  application/json  multipart/form-data
    $.post(
        'https://showme2.myhope365.com/online_course/weChat/applet/course/list/type',
        {
            type:'free',pageNum:1,pageSize:10
        },
        function(response){
            console.log(response);
        }
    )
    $.post(
        'https://showme2.myhope365.com/online_course/system/dict/data/list/open',
        {
            dictType:'course_type',pageNum:1,pageSize:10,orderByColumn:'dicSort',isAsc:'asc'
        },
        function(response){
            console.log(response);
        }
    )
    $.post(
        'https://showme2.myhope365.com/online_course/weChat/applet/subject/list',
        {
            enable:1
        },
        function(response){
            console.log(response);
        }
    )
</script>
</html>